import $http from './request.js';
// 获取用户列表
function getUserList(params) {
    return $http({
        url: '/user/list',
        params,
    })
}
//设置用户状态
function setStatus(data) {
    return $http({
        url: '/user/status',
        method: 'post',
        data,
    })
}
// 删除用户
function deleteUser(data) {
    return $http({
        url: '/user/remove',
        method: 'post',
        data,
    })
}
//新增用户
function addUser(data) {
    return $http({
        url: '/user/add',
        method: 'post',
        data,
    })
}
//编辑用户
function editUser(data) {
    return $http({
        url: '/user/edit',
        method: 'post',
        data,
    })
}
export { getUserList, setStatus, deleteUser, addUser, editUser }